<?php

namespace app\common\dict\site;


/**
 * 站点配置输入类型字典
 */
class SiteConfigInputTypeDict
{

    const STRING = 'string';

    const PASSWORD = 'password';

    const NUMBER = 'number';


    const SELECT = 'select';

    const SELECTS = 'selects';

    /**
     * 远程下拉框-单选
     */
    const REMOTE_SELECT = 'remoteSelect';

    /**
     * 远程下拉框-多选
     */
    const REMOTE_SELECTS = 'remoteSelects';

    const TEXTAREA = 'textarea';

    const RADIO = 'radio';

    const CHECKBOX = 'checkbox';

    const IMAGE = 'image';

    const IMAGES = 'images';

    const FILE = 'file';

    const FILES = 'files';

    const DATE = 'date';

    const DATETIME = 'datetime';

    const YEAR = 'year';

    const TIME = 'time';

    const SWITCH = 'switch';

    const COLOR = 'color';

    const ARRAY = 'array';

    const EDITOR = 'editor';

    const CITY = 'city';


    const ICON = 'icon';



    private static $dict = [
        self::STRING => '文本框',
        self::PASSWORD => '密码框',
        self::NUMBER => '数字框',
        self::SELECT => '下拉框',
        self::SELECTS => '多选下拉框',
        self::REMOTE_SELECT => '远程下拉框',
        self::REMOTE_SELECTS => '远程多选下拉框',
        self::TEXTAREA => '多行文本框',
        self::RADIO => '单选框',
        self::CHECKBOX => '复选框',
        self::IMAGE => '图片',
        self::IMAGES => '多图',
        self::FILE => '文件',
        self::FILES => '多文件',
        self::DATE => '日期',
        self::DATETIME => '日期时间',
        self::YEAR => '年份',
        self::TIME => '时间',
        self::SWITCH => '开关',
        self::COLOR => '颜色',
        self::ARRAY => '数组',
        self::EDITOR => '编辑器',
        self::CITY => '城市',
        self::ICON => '图标'
    ];



    public static function getDict()
    {
        return self::$dict;
    }


    /**
     * 获取字典值
     * @param $key
     * @return string
     */
    public static function getDictValue($key)
    {
        return self::$dict[$key];
    }




}